Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: Only switch user if the current user is root #7654

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

skylenet
Copy link
Contributor

One might be running the container without root (e.g. docker run --user youruser ... ), if that's the case you'll get an error like this when running su:

Password: su: Authentication failure

@fab-10 fab-10 enabled auto-merge (squash) September 23, 2024 09:25
@fab-10 fab-10 merged commit 0d63955 into hyperledger:main Sep 23, 2024
43 checks passed
Wolmin pushed a commit to lukso-network/network-besu that referenced this pull request Sep 27, 2024
* Update entrypoint script for Dockerfile to only switch user if its running as root

Signed-off-by: Rafael Matias <[email protected]>

* make root user check at the beginning

Signed-off-by: Rafael Matias <[email protected]>

---------

Signed-off-by: Rafael Matias <[email protected]>
Signed-off-by: Wolmin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants